package com.itwill.ecom.product;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonRootName;

@JsonRootName("produrt/product")
public class ProductBeans {	

	@JsonProperty("product_no")
	int product_no;
	@JsonProperty("product_name")
	String product_name;
	@JsonProperty("product_price")
	int product_price;
	@JsonProperty("product_category")
	int product_category;
	@JsonProperty("product_company")
	int product_company;
	@JsonProperty("product_detail")
	String product_detail;
	@JsonProperty("product_count")
	int product_count;
	@JsonProperty("product_image0")
	String product_image0;
	@JsonProperty("product_image1")
	String product_image1;
	@JsonProperty("product_image2")
	String product_image2;
	@JsonProperty("product_image3")
	String product_image3;
	@JsonProperty("product_image4")
	String product_image4;
	@JsonProperty("product_image5")
	String product_image5;
	@JsonProperty("product_image6")
	String product_image6;
	@JsonProperty("product_image7")
	String product_image7;
	@JsonProperty("product_image8")
	String product_image8;
	@JsonProperty("product_image9")
	String product_image9;
	
	public ProductBeans() {
		System.out.println("디폴트 생성자 실행");
	}

	public ProductBeans(int product_no, String product_name, int product_price,
			int product_category, int product_company, String product_detail,
			int product_count, String product_image0, String product_image1,
			String product_image2, String product_image3,
			String product_image4, String product_image5,
			String product_image6, String product_image7,
			String product_image8, String product_image9) {
		super();
		this.product_no = product_no;
		this.product_name = product_name;
		this.product_price = product_price;
		this.product_category = product_category;
		this.product_company = product_company;
		this.product_detail = product_detail;
		this.product_count = product_count;
		this.product_image0 = product_image0;
		this.product_image1 = product_image1;
		this.product_image2 = product_image2;
		this.product_image3 = product_image3;
		this.product_image4 = product_image4;
		this.product_image5 = product_image5;
		this.product_image6 = product_image6;
		this.product_image7 = product_image7;
		this.product_image8 = product_image8;
		this.product_image9 = product_image9;
	}

	public int getProduct_no() {
		return product_no;
	}

	public void setProduct_no(int product_no) {
		this.product_no = product_no;
	}

	public String getProduct_name() {
		return product_name;
	}

	public void setProduct_name(String product_name) {
		this.product_name = product_name;
	}

	public int getProduct_price() {
		return product_price;
	}

	public void setProduct_price(int product_price) {
		this.product_price = product_price;
	}

	public int getProduct_category() {
		return product_category;
	}

	public void setProduct_category(int product_category) {
		this.product_category = product_category;
	}

	public int getProduct_company() {
		return product_company;
	}

	public void setProduct_company(int product_company) {
		this.product_company = product_company;
	}

	public String getProduct_detail() {
		return product_detail;
	}

	public void setProduct_detail(String product_detail) {
		this.product_detail = product_detail;
	}

	public int getProduct_count() {
		return product_count;
	}

	public void setProduct_count(int product_count) {
		this.product_count = product_count;
	}

	public String getProduct_image0() {
		return product_image0;
	}

	public void setProduct_image0(String product_image0) {
		this.product_image0 = product_image0;
	}

	public String getProduct_image1() {
		return product_image1;
	}

	public void setProduct_image1(String product_image1) {
		this.product_image1 = product_image1;
	}

	public String getProduct_image2() {
		return product_image2;
	}

	public void setProduct_image2(String product_image2) {
		this.product_image2 = product_image2;
	}

	public String getProduct_image3() {
		return product_image3;
	}

	public void setProduct_image3(String product_image3) {
		this.product_image3 = product_image3;
	}

	public String getProduct_image4() {
		return product_image4;
	}

	public void setProduct_image4(String product_image4) {
		this.product_image4 = product_image4;
	}

	public String getProduct_image5() {
		return product_image5;
	}

	public void setProduct_image5(String product_image5) {
		this.product_image5 = product_image5;
	}

	public String getProduct_image6() {
		return product_image6;
	}

	public void setProduct_image6(String product_image6) {
		this.product_image6 = product_image6;
	}

	public String getProduct_image7() {
		return product_image7;
	}

	public void setProduct_image7(String product_image7) {
		this.product_image7 = product_image7;
	}

	public String getProduct_image8() {
		return product_image8;
	}

	public void setProduct_image8(String product_image8) {
		this.product_image8 = product_image8;
	}

	public String getProduct_image9() {
		return product_image9;
	}

	public void setProduct_image9(String product_image9) {
		this.product_image9 = product_image9;
	}

	@Override
	public String toString() {
		return "상품: "+product_no+"/ "+product_name+"/ "+product_category+"/ "+product_company;
	}
	
}
